﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlatWL.Data
{
    public class Msg_Page
    {
        public Msg_Page()
        {
            whereParams = new Dictionary<string, string>();
            SortParams = new Dictionary<string, int>();
        }
        private int pageindex_ = 1;  //页码
        private int pagesize_ = 10;  //每页显示数据
        private string key_ = "";    //关键字搜索
        public int pageindex
        {
            get { return pageindex_; }
            set
            {
                if (value > 0)
                {
                    pageindex_ = value;
                }
            }
        }
        public int pagesize
        {
            get { return pagesize_; }
            set
            {
                if (value > 0)
                {
                    pagesize_ = value;
                }
            }
        }
        public string key
        {
            get { return key_; }
            set
            {
                key_ = value;
            }
        }
        public Dictionary<string, string> whereParams { get; set; }
        /// <summary>
        /// 排序字段，0正序，1倒序 默认id倒序
        /// </summary>
        public Dictionary<string, int> SortParams { get; set; }
    }
}
